// 引入封装好的request
import request from '@/utils/request'

// 获取分类列表
export const getAllCategory = () => {
  return request('/home/category/head', 'get')
}
// 获取品牌推荐数据
export const findBrand = (limit) => {
  return request('/home/brand', 'get', { limit: limit })
}
// 获取一级类目的数据
export const findTopCategory = (id) => {
  return request('/category', 'get', { id: id })
}
// 获取二级类目筛选数据
export const filtersub = (id) => {
  return request('/category/sub/filter', 'get', { id: id })
}
// 获取商品列表
export const findSubCategoryGoods = (data) => {
  return request('/category/goods/temporary', 'post', data)
}
